package cn.bdqn.service.impl;

import cn.bdqn.domain.Menber;
import cn.bdqn.mapper.MenberMapper;
import cn.bdqn.service.MenberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MenberServiceImpl implements MenberService {

    @Resource
    private MenberMapper menberMapper;

    @Override
    public Menber queryByMenberIdCard(String menberIdCard) {
        return menberMapper.selectAllByMenberIdcard(menberIdCard);
    }

    @Override
    public void modifyById(Menber menber) {
        menberMapper.updateByPrimaryKeySelective(menber);
    }
}
